<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.js">
</script>
<title>无标题文档</title>
<script type="text/javascript">
$(document).ready(function(){
    $('.f1 tr:odd').addClass('odd');
    $('.f1 tr:even').addClass('even');
});


function delnews() {
    if (confirm ("确定要删除吗？")){
        return true;
    }
    else
        return false;
}

</script>
<style type="text/css">
.odd{
background-color:#cfebff;
}
.even{
background-color:#98d0f8;
}
img{
border:0px;
}

table tr{
line-height:20px;
}

body{
font-size:12px;
color:#000000;
}

a{
    text-decoration: none;
}

</style>
</head>

<body>



<a href="?a=tree_add&pid=0">
root
</a>


<hr />

<table width="700px" border="0" cellspacing="0" cellpadding="0" name="f1" class="f1">

<col width="50"/>
<!--
<col width="250"/>
-->
<col width="150"/>
<col width="250"/>

  <tr>
    <td>编号</td>
    <!-- <td>资源</td> -->
    <td>title</td>
    <td>操作</td>
  </tr>
  <?php foreach($treelist as $key) {?>
  <tr>
    <td><?php echo $key["id"]?></td>
    <!-- <td><?php echo $key["name"] ?></td> -->
    <td><?php echo str_repeat('--',$key["echo"]); ?> <?php echo $key["title"]?></td>
    <td>
	<span><a href="?a=tree_add&pid=<?php echo $key["id"] ?>">add</a></span>
	<span><a href="?a=tree_edit&id=<?php echo $key["id"];?>&pid=<?php echo $key["pid"]?>&title=<?php echo $key["title"] ?>">edit</a></span>
	<span>
        <a href="?a=tree_del&&id=<?php echo $key["id"] ?>" onclick="javascript:return delnews()">
        del
        </a>
    </span>
	</td>
  </tr>
  <?php } ?>
</table>

</body>
</html>
